<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/inform.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/Homepage/style.css"/>
<style>
.month.box1 .mypopular_detail { display:none;width:324px;}
.month.box1 .mypopular_detail.pop_show {display:block;}

</style>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js" ></script>
<script>
	$(function(){
		$('.mypopular_button2').hover(function(){
			index = $('.mypopular_button2').index($(this));
			$('.mypopular_button2').removeClass('mypopular_button1');
			$(this).addClass('mypopular_button1');
			$('.month.box1 .mypopular_detail').removeClass('pop_show');
			$('.month.box1 .mypopular_detail').eq(index).addClass('pop_show');
		})
	})
</script>
</head>

<div class="home_menu" style="padding-bottom:40px;">
	<include file="Public:home_header" />
	<div style="clear:both"></div>
	<div class="main_wrap">
		<div class="zt" id="zt">
			<include file="Public/leftMenu" />
			<div class="yinfor">
				<div class="center_wrap">
					<div class="center_title"><h1>房间管理</h1></div>
					<p class="lr_title">{:I('get.id')}的房间人气</p>
			  
				   <div class="box">
						<div style="text-align:left;">
							<div class="mypopular_button">本&nbsp&nbsp周</div>
							<table  cellspacing=0 cellpadding=0 class="mypopular_detail">
								<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
								<empty name="Tweek">
									<tr class="mypopular_line"><td colspan=6>无记录</td></tr>
								</empty>
								<volist name="Tweek" id="vo">
								<tr class="mypopular_line"><td>{$vo.fscore}</td><td>{$vo.nip}</td><td>{$vo.nuser}</td><td>{$vo.nmic}</td><td>
								<?php 							
									$data = floor($vo['nmoney']/1000);
									$length = strlen($data);
									if($length>4&&$length<9){
									  $total = substr($data,0,($length-4));
									  echo $total."万";
									}else if($length>8){
									  $total = substr($data,0,($length-8));
									  echo $total."亿";					
									}else{
										echo $data;
									};
								?>						
								</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr>
								</volist>
								<tr class="mypopular_line" ><td colspan="6">本周人气共计：{$Tw_popu}</td></tr>
							</table>
						</div>
						<div style="text-align:left;">
							<div class="mypopular_button">上&nbsp&nbsp周</div>
							<table  cellspacing=0 cellpadding=0 class="mypopular_detail">
								<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
								<empty name="Lweek">
									<tr class="mypopular_line"><td colspan=6>无记录</td></tr>
								</empty>
								<volist name="Lweek" id="vo">
								<tr class="mypopular_line"><td>{$vo.fscore}</td><td>{$vo.nip}</td><td>{$vo.nuser}</td><td>{$vo.nmic}</td><td>
								<?php 							
									$data = floor($vo['nmoney']/1000);
									$length = strlen($data);
									if($length>4&&$length<9){
									  $total = substr($data,0,($length-4));
									  echo $total."万";
									}else if($length>8){
									  $total = substr($data,0,($length-8));
									  echo $total."亿";					
									}else{
										echo $data;
									};
								?>									
								</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr>
								</volist>	
								<tr class="mypopular_line" ><td colspan="6">上周人气共计：{$Lw_popu}</td></tr>
							</table>
						</div>
						<div class="mypopular_word">说明：1、挂号数已折算；2、人气=（真实IP数8*10+挂号数*3+排麦分+刷花分）（四舍五入）</div>
					</div>
					<div class="box1 month">
						<div>
							<ul  style="text-align:left;">
								<li class="mypopular_button2 mypopular_button1">本&nbsp&nbsp月</li><li class="mypopular_button2" style="margin-left:12px;">上&nbsp&nbsp月</li>
							</ul>
							<div style="clear:both"></div>
						</div>
						<table  cellspacing=0 cellpadding=0 class="mypopular_detail pop_show" style="margin-top:0">
							<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
								<empty name="Tmonth">
									<tr class="mypopular_line"><td colspan=6>无记录</td></tr>
								</empty>
								<volist name="Tmonth" id="vo">
								<tr class="mypopular_line"><td>{$vo.fscore}</td><td>{$vo.nip}</td><td>{$vo.nuser}</td><td>{$vo.nmic}</td><td>
								<?php 							
									$data = floor($vo['nmoney']/1000);
									$length = strlen($data);
									if($length>4&&$length<9){
									  $total = substr($data,0,($length-4));
									  echo $total."万";
									}else if($length>8){
									  $total = substr($data,0,($length-8));
									  echo $total."亿";					
									}else{
										echo $data;
									};
								?>									
								</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr>
								</volist>
							<tr class="mypopular_line"><td colspan="6">本月人气共计：{$Tm_popu}</td></tr>
						</table>
						<table  cellspacing=0 cellpadding=0 class="mypopular_detail" style="margin-top:0">
							<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
								<empty name="Lmonth">
									<tr class="mypopular_line"><td colspan=6>无记录</td></tr>
								</empty>
								<volist name="Lmonth" id="vo">
								<tr class="mypopular_line"><td>{$vo.fscore}</td><td>{$vo.nip}</td><td>{$vo.nuser}</td><td>{$vo.nmic}</td><td>
								<?php 							
									$data = floor($vo['nmoney']/1000);
									$length = strlen($data);
									if($length>4&&$length<9){
									  $total = substr($data,0,($length-4));
									  echo $total."万";
									}else if($length>8){
									  $total = substr($data,0,($length-8));
									  echo $total."亿";					
									}else{
										echo $data;
									};
								?>
								
								</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr>
								</volist>
							<tr class="mypopular_line"><td colspan="6">上月人气共计：{$Lm_popu}</td></tr>
						</table>					
					</div>
				</div>
				
			</div>
		</div>
	</div>
</div>	
</html>
